export function sum<T>